﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SanPham.aspx.cs" Inherits="EFashion.SanPham" MasterPageFile="~/Site1.Master" %>
 

<%@ Register src="UserControl/MenuLoaiSP.ascx" tagname="MenuLoaiSP" tagprefix="uc3" %>
       
<%@ Register src="UserControl/TimKiemSanPham.ascx" tagname="TimKiemSanPham" tagprefix="uc4" %>
       

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
        
       <script type="text/css">
         #form1
        {
            height: 203px;
        }
        .style5
        {
            width: 238px;
        }
        .style6
        {
            height: 23px;
        }
        
        </script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
  
 <div>
 <div style="height:auto">
  <div id="left-column">
    <div id="nav">
     
        
        
           <div style="width: 200px; height: auto;">
          <div>
           <ul>
                
               <uc3:MenuLoaiSP ID="MenuLoaiSP1" runat="server" />
                
            </ul>
            </div>
        </div>
        <div style="margin-top:50px" >
            <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
          
           
           
            <uc4:TimKiemSanPham ID="TimKiemSanPham1" runat="server" />
          
           
           
        </div>
   </div>
    
    </div>
    
  
    
    <div id="right-column" style="height:1000px">


						
			<table style="width:100%;">
            <tr>
                <td>
                <!-- box begin -->
				<div class="box">
							<div class="left-top-corner png"><div class="right-top-corner png"><div class="border-top png"></div></div></div>
							<div class="border-left png">
								<div class="border-right png">
									<div class="inside png">

                <h2>
                    Sản phẩm Hot
                </h2>
                       <table  width="500px" style="margin-left:70px">
                       <tr>
                       <td style="margin-left:10px">
                         <asp:GridView ID="grvSPHotNam" runat="server" AllowPaging="True" 
                                AutoGenerateColumns="False" PageSize="2" Width="212px" 
                                onpageindexchanged="grvSPHienCo_PageIndexChanged" 
                                onpageindexchanging="grvSPHienCo_PageIndexChanging" CellSpacing="5" 
                               onrowdatabound="RowDataBound" ShowFooter="True" GridLines="None" 
                               onselectedindexchanged="grvSPHotNam_SelectedIndexChanged" 
                               ShowHeader="False">
                                <PagerSettings Visible="False" />
                                <RowStyle BorderColor="#66FF33" BorderStyle="Solid" BorderWidth="2px" />
                                <Columns>
                                    <asp:TemplateField>
                                        <ItemTemplate>
                                            &nbsp<asp:HyperLink ID="HyperLink" runat="server" Text='<%# Eval("TenSanPham") %>' 
                                                NavigateUrl='<%# "ChiTietSanPham.aspx?IdSP="+Eval("MaSanPham") %>' 
                                                Font-Underline="False"></asp:HyperLink>
                                            <br />
                                            <br />
                                            <table style="width:46%;">
                                                <tr>
                                                    <td class="style5">
                                                    
                                                        <asp:Image ID="imgSP" runat="server" Height="168px" Width="169px" 
                                                            AlternateText='<%# Eval("HinhSanPham.FirstNode.Value") %>' />
                                                        <br />
                                                        <asp:Label ID="Label8" runat="server" Font-Bold="True" Font-Size="Small" 
                                                            ForeColor="#990000" Text="Nhà SX:"></asp:Label>
                                                        <asp:HyperLink ID="HyperLink4" runat="server" 
                                                            Text='<%# Eval("shop_nhasanxuat.TenNhaSanXuat") %>'></asp:HyperLink>
                                                        <br />
                                                        <asp:Label ID="Label3" runat="server" Font-Bold="True" Font-Size="Medium" 
                                                            ForeColor="#990000" Text="KM:"></asp:Label>
                                                        <asp:Label ID="lbKM" runat="server"></asp:Label>
                                                        <br />
                                                        <asp:Label ID="Label7" runat="server" Text="Giá:" Font-Bold="True" 
                                                            Font-Size="Small" ForeColor="#990000"></asp:Label>
                                                        <asp:Label ID="lbGia" runat="server" 
                                                            Text='<%# Eval("DonGia","{0:0,##0} VND") %>' Font-Bold="True" 
                                                            Font-Size="Medium" ForeColor="Red"></asp:Label>
                     
                                                        <br />
                     
                                                        <br />
                                                    </td>
                                                </tr>
                                               
                                            </table>
                                        </ItemTemplate>
                                        <FooterTemplate>
                                            <asp:HyperLink ID="HyperLink"  CssClass="small-a"
                                                NavigateUrl='<%# "~/ListSP.aspx?TenDS=HotNam&LoaiSP="+ LoaiSanPham %>' 
                                                runat="server">Xem Thêm &gt;&gt;</asp:HyperLink>
                                        </FooterTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                
                                <PagerTemplate>
                                    <asp:HyperLink ID="HyperLink22" runat="server" 
                                        Text='<%# Eval("xxx") %>'></asp:HyperLink>
                                </PagerTemplate>
                                <PagerStyle VerticalAlign="Top" />
                            </asp:GridView>
                      </td>
                     
                      <td >
                       <div style="margin-right:10px; width: 202px; float:right">
                     
                         <asp:GridView ID="grvSPHotNu" runat="server" AllowPaging="True" 
                                AutoGenerateColumns="False" PageSize="2" Width="204px" 
                                onpageindexchanged="grvSPHienCo_PageIndexChanged" 
                                onpageindexchanging="grvSPHienCo_PageIndexChanging" CellSpacing="5" 
                               onrowdatabound="RowDataBound" ShowFooter="True" GridLines="None" 
                              onselectedindexchanged="grvSPHotNam_SelectedIndexChanged" 
                              ShowHeader="False">
                                <PagerSettings Visible="False" />
                                <RowStyle BorderColor="#66FF33" BorderStyle="Solid" BorderWidth="2px" />
                                <Columns>
                                    <asp:TemplateField>
                                        <ItemTemplate>
                                            &nbsp<asp:HyperLink ID="HyperLink23" runat="server" Text='<%# Eval("TenSanPham") %>' 
                                                NavigateUrl='<%# "ChiTietSanPham.aspx?IdSP="+Eval("MaSanPham") %>' 
                                                CssClass="section" Font-Underline="False"></asp:HyperLink>
                                            <br />
                                            <br />
                                            <table style="width:46%;">
                                                <tr>
                                                    <td class="style5">
                                                    
                                                        <asp:Image ID="imgSP" runat="server" Height="168px" Width="169px" 
                                                            AlternateText='<%# Eval("HinhSanPham.FirstNode.Value") %>' />
                                                        <br />
                                                        <asp:Label ID="Label30" runat="server" Font-Bold="True" Font-Size="Small" 
                                                            ForeColor="#990000" Text="Nhà SX:"></asp:Label>
                                                        <asp:HyperLink ID="HyperLink24" runat="server" 
                                                            Text='<%# Eval("shop_nhasanxuat.TenNhaSanXuat") %>'></asp:HyperLink>
                                                        <br />
                                                        <asp:Label ID="Label31" runat="server" Font-Bold="True" Font-Size="Medium" 
                                                            ForeColor="#990000" Text="KM:"></asp:Label>
                                                        <asp:Label ID="lbKM" runat="server"></asp:Label>
                                                        <br />
                                                        <asp:Label ID="Label32" runat="server" Text="Giá:" Font-Bold="True" 
                                                            Font-Size="Small" ForeColor="#990000"></asp:Label>
                                                        <asp:Label ID="lbGia8" runat="server" 
                                                            Text='<%# Eval("DonGia","{0:0,##0} VND") %>' Font-Bold="True" 
                                                            Font-Size="Medium" ForeColor="Red"></asp:Label>
                     
                                                        <br />
                     
                                                        <br />
                                                    </td>
                                                </tr>
                                               
                                            </table>
                                        </ItemTemplate>
                                        <FooterTemplate>
                                            <asp:HyperLink ID="HyperLink25" 
                                                NavigateUrl='<%# "~/ListSP.aspx?TenDS=HotNam&LoaiSP="+ LoaiSanPham %>' 
                                                runat="server" CssClass="small-a">Xem Thêm &gt;&gt;</asp:HyperLink>
                                        </FooterTemplate>
                                    </asp:TemplateField>
                                </Columns>
                               
                                <PagerTemplate>
                                    <asp:HyperLink ID="HyperLink22" runat="server" 
                                        Text='<%# Eval("xxx") %>'></asp:HyperLink>
                                </PagerTemplate>
                                <PagerStyle VerticalAlign="Top" />
                            </asp:GridView>
                     </div>
                     
                      </td>
                    
                      </tr>      
                      </table>
                
                	</div>
					</div>
				</div>
				<div class="left-bot-corner png"><div class="right-bot-corner png"><div class="border-bot png"></div></div></div>
			</div>
          <!-- Box end-->      
                 
                </td>
            </tr>
                
            <tr>
                <td>
                    <!-- box begin -->
				<div class="box" style="margin-top:20px">
							<div class="left-top-corner png"><div class="right-top-corner png"><div class="border-top png"></div></div></div>
							<div class="border-left png">
								<div class="border-right png">
									<div class="inside png">

                   <h2>
                        Sản phẩm khuyến mãi
                     </h2>
                     
                      <table  width="500px" style="margin-left:70px">
                       <tr>
                       <td style="margin-left:10px">
                         <asp:GridView ID="grvSPKMNam" runat="server" AllowPaging="True" 
                                AutoGenerateColumns="False" PageSize="2" Width="215px" 
                                onpageindexchanged="grvSPHienCo_PageIndexChanged" 
                                onpageindexchanging="grvSPHienCo_PageIndexChanging" CellSpacing="5" 
                               onrowdatabound="RowDataBound" ShowFooter="True" GridLines="None" 
                               onselectedindexchanged="grvSPHotNam_SelectedIndexChanged" 
                               ShowHeader="False">
                                <PagerSettings Visible="False" />
                                <RowStyle BorderColor="#66FF33" BorderStyle="Solid" BorderWidth="2px" />
                                <Columns>
                                    <asp:TemplateField>
                                        <ItemTemplate>
                                            &nbsp<asp:HyperLink ID="HyperLink26" runat="server" Text='<%# Eval("TenSanPham") %>' 
                                                NavigateUrl='<%# "ChiTietSanPham.aspx?IdSP="+Eval("MaSanPham") %>' 
                                                Font-Underline="False"></asp:HyperLink>
                                                &nbsp
                                            <table style="width:46%;">
                                                <tr>
                                                    <td class="style5">
                                                    
                                                        <asp:Image ID="imgSP" runat="server" Height="168px" Width="169px" 
                                                            AlternateText='<%# Eval("HinhSanPham.FirstNode.Value") %>' />
                                                        <br />
                                                        <asp:Label ID="Label33" runat="server" Font-Bold="True" Font-Size="Small" 
                                                            ForeColor="#990000" Text="Nhà SX:"></asp:Label>
                                                        <asp:HyperLink ID="HyperLink27" runat="server" 
                                                            Text='<%# Eval("shop_nhasanxuat.TenNhaSanXuat") %>'></asp:HyperLink>
                                                        <br />
                                                        <asp:Label ID="Label34" runat="server" Font-Bold="True" Font-Size="Medium" 
                                                            ForeColor="#990000" Text="KM:"></asp:Label>
                                                        <asp:Label ID="lbKM" runat="server"></asp:Label>
                                                        <br />
                                                        <asp:Label ID="Label35" runat="server" Text="Giá:" Font-Bold="True" 
                                                            Font-Size="Small" ForeColor="#990000"></asp:Label>
                                                        <asp:Label ID="lbGia9" runat="server" 
                                                            Text='<%# Eval("DonGia","{0:0,##0} VND") %>' Font-Bold="True" 
                                                            Font-Size="Medium" ForeColor="Red"></asp:Label>
                     
                                                        <br />
                     
                                                        <br />
                                                    </td>
                                                </tr>
                                               
                                            </table>
                                        </ItemTemplate>
                                        <FooterTemplate>
                                            <asp:HyperLink ID="HyperLink28" 
                                                NavigateUrl='<%# "~/ListSP.aspx?TenDS=HotNam&LoaiSP="+ LoaiSanPham %>' 
                                                runat="server" CssClass="small-a">Xem Thêm &gt;&gt;</asp:HyperLink>
                                        </FooterTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                <PagerTemplate>
                                    <asp:HyperLink ID="HyperLink22" runat="server" 
                                        Text='<%# Eval("xxx") %>'></asp:HyperLink>
                                </PagerTemplate>
                                <PagerStyle VerticalAlign="Top" />
                            </asp:GridView>
                      </td>
                      <td>
                      <div style="margin-right:10px; width: 202px; float:right">
                         <asp:GridView ID="grvSPKMNu" runat="server" AllowPaging="True" 
                                AutoGenerateColumns="False" PageSize="2" Width="202px" 
                                onpageindexchanged="grvSPHienCo_PageIndexChanged" 
                                onpageindexchanging="grvSPHienCo_PageIndexChanging" CellSpacing="5" 
                               onrowdatabound="RowDataBound" ShowFooter="True" GridLines="None" 
                               onselectedindexchanged="grvSPHotNam_SelectedIndexChanged" 
                              ShowHeader="False">
                                <PagerSettings Visible="False" />
                                <RowStyle BorderColor="#66FF33" BorderStyle="Solid" BorderWidth="2px" />
                                <Columns>
                                    <asp:TemplateField>
                                        <ItemTemplate>
                                            &nbsp<asp:HyperLink ID="HyperLink29" runat="server" Text='<%# Eval("TenSanPham") %>' 
                                                NavigateUrl='<%# "ChiTietSanPham.aspx?IdSP="+Eval("MaSanPham") %>' 
                                                 Font-Underline="False"></asp:HyperLink>
                                                 &nbsp
                                            <table style="width:46%;">
                                                <tr>
                                                    <td class="style5">
                                                    
                                                        <asp:Image ID="imgSP" runat="server" Height="168px" Width="169px" 
                                                            AlternateText='<%# Eval("HinhSanPham.FirstNode.Value") %>' />
                                                        <br />
                                                        <asp:Label ID="Label36" runat="server" Font-Bold="True" Font-Size="Small" 
                                                            ForeColor="#990000" Text="Nhà SX:"></asp:Label>
                                                        <asp:HyperLink ID="HyperLink30" runat="server" 
                                                            Text='<%# Eval("shop_nhasanxuat.TenNhaSanXuat") %>'></asp:HyperLink>
                                                        <br />
                                                        <asp:Label ID="Label37" runat="server" Font-Bold="True" Font-Size="Medium" 
                                                            ForeColor="#990000" Text="KM:"></asp:Label>
                                                        <asp:Label ID="lbKM" runat="server"></asp:Label>
                                                        <br />
                                                        <asp:Label ID="Label38" runat="server" Text="Giá:" Font-Bold="True" 
                                                            Font-Size="Small" ForeColor="#990000"></asp:Label>
                                                        <asp:Label ID="lbGia10" runat="server" 
                                                            Text='<%# Eval("DonGia","{0:0,##0} VND") %>' Font-Bold="True" 
                                                            Font-Size="Medium" ForeColor="Red"></asp:Label>
                     
                                                        <br />
                     
                                                        <br />
                                                    </td>
                                                </tr>
                                               
                                            </table>
                                        </ItemTemplate>
                                        <FooterTemplate>
                                            <asp:HyperLink ID="HyperLink31" 
                                                NavigateUrl='<%# "~/ListSP.aspx?TenDS=HotNam&LoaiSP="+ LoaiSanPham %>' 
                                                runat="server" CssClass="small-a">Xem Thêm &gt;&gt;</asp:HyperLink>
                                        </FooterTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                
                                <PagerTemplate>
                                    <asp:HyperLink ID="HyperLink22" runat="server" 
                                        Text='<%# Eval("xxx") %>'></asp:HyperLink>
                                </PagerTemplate>
                                <PagerStyle VerticalAlign="Top" />
                            </asp:GridView>
                      </div>
                      </td>
                      </tr>      
                      </table>
                  
                  	</div>
					</div>
				</div>
				<div class="left-bot-corner png"><div class="right-bot-corner png"><div class="border-bot png"></div></div></div>
			</div>
          <!-- Box end-->      
                  
                </td>
            </tr>
            
            
             <tr>
                <td>
               <!-- box begin -->
				<div class="box" style=" margin-top:20px">
							<div class="left-top-corner png"><div class="right-top-corner png"><div class="border-top png"></div></div></div>
							<div class="border-left png">
								<div class="border-right png">
									<div class="inside png">
                    
                  <h2>
                        Sản Phẩm hiện có
                   </h2>
                     <table  width="500px" style="margin-left:70px">
                       <tr>
                       <td style="margin-left:10px">
                         <asp:GridView ID="grvSPNam" runat="server" AllowPaging="True" 
                                AutoGenerateColumns="False" PageSize="2" Width="208px" 
                                onpageindexchanged="grvSPHienCo_PageIndexChanged" 
                                onpageindexchanging="grvSPHienCo_PageIndexChanging" CellSpacing="5" 
                               onrowdatabound="RowDataBound" ShowFooter="True" GridLines="None" 
                               onselectedindexchanged="grvSPHotNam_SelectedIndexChanged" 
                               ShowHeader="False">
                                <PagerSettings Visible="False" />
                                <RowStyle BorderColor="#66FF33" BorderStyle="Solid" BorderWidth="2px" />
                                <Columns>
                                    <asp:TemplateField>
                                        <ItemTemplate>
                                            &nbsp<asp:HyperLink ID="HyperLink32" runat="server" Text='<%# Eval("TenSanPham") %>' 
                                                NavigateUrl='<%# "ChiTietSanPham.aspx?IdSP="+Eval("MaSanPham") %>' 
                                                Font-Underline="False"></asp:HyperLink>
                                                &nbsp
                                            <table style="width:46%;">
                                                <tr>
                                                    <td class="style5">
                                                    
                                                        <asp:Image ID="imgSP" runat="server" Height="168px" Width="169px" 
                                                            AlternateText='<%# Eval("HinhSanPham.FirstNode.Value") %>' />
                                                        <br />
                                                        <asp:Label ID="Label39" runat="server" Font-Bold="True" Font-Size="Small" 
                                                            ForeColor="#990000" Text="Nhà SX:"></asp:Label>
                                                        <asp:HyperLink ID="HyperLink33" runat="server" 
                                                            Text='<%# Eval("shop_nhasanxuat.TenNhaSanXuat") %>'></asp:HyperLink>
                                                        <br />
                                                        <asp:Label ID="Label40" runat="server" Font-Bold="True" Font-Size="Medium" 
                                                            ForeColor="#990000" Text="KM:"></asp:Label>
                                                        <asp:Label ID="lbKM" runat="server"></asp:Label>
                                                        <br />
                                                        <asp:Label ID="Label41" runat="server" Text="Giá:" Font-Bold="True" 
                                                            Font-Size="Small" ForeColor="#990000"></asp:Label>
                                                        <asp:Label ID="lbGia11" runat="server" 
                                                            Text='<%# Eval("DonGia","{0:0,##0} VND") %>' Font-Bold="True" 
                                                            Font-Size="Medium" ForeColor="Red"></asp:Label>
                     
                                                        <br />
                     
                                                        <br />
                                                    </td>
                                                </tr>
                                               
                                            </table>
                                        </ItemTemplate>
                                        <FooterTemplate>
                                            <asp:HyperLink ID="HyperLink34" 
                                                NavigateUrl='<%# "~/ListSP.aspx?TenDS=HotNam&LoaiSP="+ LoaiSanPham %>' 
                                                runat="server" CssClass="small-a">Xem Thêm &gt;&gt;</asp:HyperLink>
                                        </FooterTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                
                                <PagerTemplate>
                                    <asp:HyperLink ID="HyperLink22" runat="server" 
                                        Text='<%# Eval("xxx") %>'></asp:HyperLink>
                                </PagerTemplate>
                                <PagerStyle VerticalAlign="Top" />
                            </asp:GridView>
                       </td>
                      <td>
                      <div style="margin-right:10px; width: 202px; float:right">
                         <asp:GridView ID="grvSPNu" runat="server" AllowPaging="True" 
                                AutoGenerateColumns="False" PageSize="2" Width="198px" 
                                onpageindexchanged="grvSPHienCo_PageIndexChanged" 
                                onpageindexchanging="grvSPHienCo_PageIndexChanging" CellSpacing="5" 
                               onrowdatabound="RowDataBound" ShowFooter="True" GridLines="None" 
                               onselectedindexchanged="grvSPHotNam_SelectedIndexChanged" 
                              ShowHeader="False">
                                <PagerSettings Visible="False" />
                                <RowStyle BorderColor="#66FF33" BorderStyle="Solid" BorderWidth="2px" />
                                <Columns>
                                    <asp:TemplateField>
                                        <ItemTemplate>
                                            &nbsp<asp:HyperLink ID="HyperLink35" runat="server" Text='<%# Eval("TenSanPham") %>' 
                                                NavigateUrl='<%# "ChiTietSanPham.aspx?IdSP="+Eval("MaSanPham") %>' 
                                                 Font-Underline="False"></asp:HyperLink>
                                                 &nbsp
                                            <table style="width:46%;">
                                                <tr>
                                                    <td class="style5">
                                                    
                                                        <asp:Image ID="imgSP" runat="server" Height="168px" Width="169px" 
                                                            AlternateText='<%# Eval("HinhSanPham.FirstNode.Value") %>' />
                                                        <br />
                                                        <asp:Label ID="Label42" runat="server" Font-Bold="True" Font-Size="Small" 
                                                            ForeColor="#990000" Text="Nhà SX:"></asp:Label>
                                                        <asp:HyperLink ID="HyperLink36" runat="server" 
                                                            Text='<%# Eval("shop_nhasanxuat.TenNhaSanXuat") %>'></asp:HyperLink>
                                                        <br />
                                                        <asp:Label ID="Label43" runat="server" Font-Bold="True" Font-Size="Medium" 
                                                            ForeColor="#990000" Text="KM:"></asp:Label>
                                                        <asp:Label ID="lbKM" runat="server"></asp:Label>
                                                        <br />
                                                        <asp:Label ID="Label44" runat="server" Text="Giá:" Font-Bold="True" 
                                                            Font-Size="Small" ForeColor="#990000"></asp:Label>
                                                        <asp:Label ID="lbGia12" runat="server" 
                                                            Text='<%# Eval("DonGia","{0:0,##0} VND") %>' Font-Bold="True" 
                                                            Font-Size="Medium" ForeColor="Red"></asp:Label>
                     
                                                        <br />
                     
                                                        <br />
                                                    </td>
                                                </tr>
                                               
                                            </table>
                                        </ItemTemplate>
                                        <FooterTemplate>
                                            <asp:HyperLink ID="HyperLink37" 
                                                NavigateUrl='<%# "~/ListSP.aspx?TenDS=HotNam&LoaiSP="+ LoaiSanPham %>' 
                                                runat="server" CssClass="small-a">Xem Thêm >></asp:HyperLink>
                                        </FooterTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                
                                <PagerTemplate>
                                    <asp:HyperLink ID="HyperLink22" runat="server" 
                                        Text='<%# Eval("xxx") %>'></asp:HyperLink>
                                </PagerTemplate>
                                <PagerStyle VerticalAlign="Top" />
                            </asp:GridView>
                       </div>
                      </td>
                      </tr>      
                      </table>
                    
                    </div>
					</div>
				</div>
				<div class="left-bot-corner png"><div class="right-bot-corner png"><div class="border-bot png"></div></div></div>
			</div>
          <!-- Box end--> 
                 </td>
            </tr>
     
        </table>
														
														
														
														
														
														

	</div>

<%--    <div id="col3">
    
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <uc2:TimKiemSanPham ID="TimKiemSanPham1" runat="server" />
    
    </div> --%>
     <br />
     <br />
     <br />
   </div> 
</div>

</asp:Content>


